<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Fallback format example</title>
    <script src="../../../node_modules/vue/dist/vue.global.js"></script>
    <script src="../../../packages/vue-i18n/dist/vue-i18n.global.js"></script>
  </head>
  <body>
    <div id="app">
      <p>{{ $t("hello, {name}!", { name: 'kazupon' }) }}</p>
    </div>
    <script>
      const { createApp } = Vue
      const { createI18n } = VueI18n

      const i18n = createI18n({
        locale: 'ja',
        formatFallbackMessages: true, // enable, fallback to locale message key
        messages: {
          // `hello, {name}` key is nothing in `messages` option
          en: {},
          ja: {}
        }
      })

      const app = createApp({})
      app.use(i18n)
      app.mount('#app')
    </script>
  </body>
</html>
